package com.bestom.sharingbookcase;

import android.app.Application;
import android.content.Context;
import android.provider.Settings;

/**
 * @author shulman
 */
public class SharingBookcaseApp extends Application {

    public static SharingBookcaseApp application;
    public static String clientId = "";
    public IGetMessageCallBack IGetMessageCallBack;

    public static SharingBookcaseApp getApplication(){
        return application;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        //初始化
        application = this;
//        clientId = getAndroidID(this);
        clientId = "BS00001";
    }

    public static String getAndroidID(Context context) {
        return Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID);
    }

    public void setIGetMessageCallBack(IGetMessageCallBack IGetMessageCallBack){
        this.IGetMessageCallBack = IGetMessageCallBack;
    }
}
